"""Show information about a single participant. It might be you! """ import locale import requests from aspen import json, Response from aspen.utils import to_age from gittip import AMOUNTS from gittip.utils import get_participant, wrap MAKING = "I am making the world better by" def _clip(text, n): text = text.replace('\n', ' ') if len(text) > n: text = text[:(n - 4)] + '...' return text # ========================================================================== ^L participant = get_participant(request, restrict=False) locked = False tip_or_pledge = "tip" hero = "Profile" title = participant.id # used in the title tag username = participant.id # used in footer shared with on/$platform/ pages github_account, twitter_account = participant.get_accounts_elsewhere() # ========================================================================== ^L {% extends templates/profile.html %} {% block head %} {% end %} {% block page %} {% if user == participant %}